<!DOCTYPE html>
<!--<script type="text/javascript" src="../lifeService/orderManager.js"></script>-->
<script>

    $('#biddg').datagrid({
        url:'/admin/bidList?inforid='+inforid,
        //border : false,
        rownumbers: true,
        idField : 'id',
        pagination : true,
        sortName : 'createtime',//默认排序的列
        sortOrder: 'desc',
        pageSize : 10,
        pageList : [ 10, 20, 40, 80 ],
        fitColumns : true,
        fit : true,
        checkOnSelect : false,
        selectOnCheck : true,
        striped: true,//条纹交替
        nowrap : false,
        columns:[[
            {field:'',checkbox:true},
            {field:'phone',title:'报价人手机',width:200,align:'center'},
            {field:'name',title:'姓名',width:200,align:'center'},
            {field:'price',title:'价格',width:100,align:'center'},
            {field:'accept',title:'是否接受',width:100,align:'center',formatter : function(value, rowData, rowIndex) {
                if(value==0){
                    return '未接受';
                }else if(value==2){
                    return '已接受';
                }

            }},
            {field:'authstate',title:'报价人认证状态',width:100,align:'center',formatter : function(value, rowData, rowIndex) {
                if(value==0){
                    return '未认证';
                }else if(value==1){
                    return '已认证';
                }else if(value==2){
                    return '等待认证';
                }

            }},
            {field:'starttime',title:'出发日期',width:200,align:'center'},
            {field:'endtime',title:'到达日期',width:200,align:'center'},
            {field:'createtime',title:'发布日期',width:200,align:'center'}
        ]],
        toolbar : '#bidtb'
    });

    function searchBidList(){
        $('#biddg').datagrid('load',{
            date1: $('#bdate1').datebox('getValue'),
            date2: $('#bdate2').datebox('getValue'),
            phone: $('#bphone').textbox('getValue'),
            status:$('#bstatus').combobox('getValue')


        });
    }

</script>
<div id=""  style="height: 100%">
    <table id="biddg" data-options="fit:true,border:false" style="height: 100%"></table>

    <div id="bidtb" style="padding:2px 5px;">
        <!--
                <a href="#" class="easyui-linkbutton" iconCls="icon-ok" plain="false" onclick="updateStatus()">修改使用状态</a>
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        -->
        从: <input id="bdate1" class="easyui-datetimebox" data-options="showSeconds:true" style="width:150px">&nbsp;&nbsp;&nbsp;
        到: <input id="bdate2" class="easyui-datetimebox" data-options="showSeconds:true" style="width:150px">&nbsp;&nbsp;&nbsp;
        客户手机：<input  class="easyui-textbox" id="bphone" name="phone"/>&nbsp;&nbsp;&nbsp;
        报价状态：<input class="easyui-combobox"  id="bstatus" style="width: 80px" data-options="
        panelHeight:'auto',
		valueField: 'label',
		textField: 'value',
		data: [{
			label: '2',
			value: '全部',
			selected:true
		},{
			label: '0',
			value: '未接受'
		},{
			label: '1',
			value: '已接受'
		}]" />
        <a href="#" class="easyui-linkbutton" iconCls="icon-search" onclick="searchBidList()">搜索</a>
    </div>
</div>
